package com.example.pandaso.pojo;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class BingSearchResult {
    @JsonProperty("AS")
    private AS as;

    public AS getAs() {
        return as;
    }

    public void setAs(AS as) {
        this.as = as;
    }

    public static class AS {
        @JsonProperty("Results")
        private List<Result> results;

        @JsonProperty("Query")
        private String query;

        @JsonProperty("FullResults")
        private String fullResults;

        public List<Result> getResults() {
            return results;
        }

        public void setResults(List<Result> results) {
            this.results = results;
        }

        public String getQuery() {
            return query;
        }

        public void setQuery(String query) {
            this.query = query;
        }

        public String getFullResults() {
            return fullResults;
        }

        public void setFullResults(String fullResults) {
            this.fullResults = fullResults;
        }
    }

    public static class Result {
        @JsonProperty("Type")
        private String type;

        @JsonProperty("Suggests")
        private List<Suggest> suggests;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public List<Suggest> getSuggests() {
            return suggests;
        }

        public void setSuggests(List<Suggest> suggests) {
            this.suggests = suggests;
        }
    }

    public static class Suggest {
        @JsonProperty("Txt")
        private String txt;

        @JsonProperty("Type")
        private String type;

        @JsonProperty("Sk")
        private String sk;

        @JsonProperty("HCS")
        private int hcs;

        public String getTxt() {
            return txt;
        }

        public void setTxt(String txt) {
            this.txt = txt;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getSk() {
            return sk;
        }

        public void setSk(String sk) {
            this.sk = sk;
        }

        public int getHcs() {
            return hcs;
        }

        public void setHcs(int hcs) {
            this.hcs = hcs;
        }
    }
}
